package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 字段类型对象 sys_data_type
 * 
 * @author ruoyi
 * @date 2021-10-31
 */
public class SysDataType extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 中文名称 */
    @Excel(name = "中文名称")
    private String nameZh;

    /** 英文名称 */
    @Excel(name = "英文名称")
    private String nameEn;

    /** 表单数据类型 */
    @Excel(name = "动态表单数据类型")
    private String formType;

    /** 检索数据类型 */
    @Excel(name = "检索数据类型")
    private String retrievalType;

    /** 字符类型 */
    @Excel(name = "数据库字段类型")
    private String fieldType;

    /** 字符类型 */
    @Excel(name = "查询规则")
    private String queryRules;


    /** 排序 */
    private Long sort;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setNameZh(String nameZh) 
    {
        this.nameZh = nameZh;
    }

    public String getNameZh() 
    {
        return nameZh;
    }
    public void setNameEn(String nameEn) 
    {
        this.nameEn = nameEn;
    }

    public String getNameEn() 
    {
        return nameEn;
    }
    public void setFormType(String formType) 
    {
        this.formType = formType;
    }

    public String getFormType() 
    {
        return formType;
    }
    public void setFieldType(String fieldType) 
    {
        this.fieldType = fieldType;
    }

    public String getFieldType() 
    {
        return fieldType;
    }
    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }

    public String getQueryRules() {
        return queryRules;
    }

    public void setQueryRules(String queryRules) {
        this.queryRules = queryRules;
    }

    public String getRetrievalType() {
        return retrievalType;
    }

    public void setRetrievalType(String retrievalType) {
        this.retrievalType = retrievalType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("nameZh", getNameZh())
            .append("nameEn", getNameEn())
            .append("formType", getFormType())
            .append("retrievalType", getRetrievalType())
            .append("fieldType", getFieldType())
            .append("sort", getSort())
            .append("queryRules", getQueryRules())
            .toString();
    }
}
